// pages/monthlyStatement/monthlyStatement.js
var usedata = require("../monthlyStatementdata/monthlyStatementdata.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    date:"2018年11月",
    years:"2018",
    months:'11',
    myOrderdata:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      myOrderdata: usedata.myOrderdata
    })
  },
  getDateTime: function (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      date: e.detail.value,
      years: e.detail.value.substring(0, 4),
      months: e.detail.value.substring(5, 7)
    })
  },
})